<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>jquery.iviewer test</title>
    <link rel="stylesheet" href="../jquery.iviewer.css"/>
    <script type="text/javascript" src="../lib/jquery.js"></script>
    <script type="text/javascript" src="../lib/jqueryui.js"></script>
    <script type="text/javascript" src="../lib/jquery.mousewheel.min.js"></script>
    <script type="text/javascript" src="../jquery.iviewer.js"></script>
    <script type="text/javascript" src="../lib/drag.js"></script>
    <script type="text/javascript">
        jQuery(function ($) {
            $('.img').PreImageBox({container: '#viewerContainer',name:'我是图1'});
        });

        function addImage() {
            $('body').append('<a src="test_image3.jpg" href="javascript:;" class="img">图片1</a>');
            $('.img').PreImageBox({container: '#viewerContainer'});
        }
    </script>
    <style>
        html, body {
            height: 100%;
            padding: 0;
            margin: 0;
        }

        .wrapper {
            height: 100px;
        }


    </style>
</head>
<body>
<div class="wrapper">
    <div id="viewerContainer" style="display: none;"></div>
</div>
<div id="pointer">兄弟到底了</div>
<a src="img/test_active_with_objects.GIF" href="javascript:;" class="img">图片1</a>
<a src="img/test_image.jpg" class="img" href="javascript:;">图片2</a>

<a src="img/test_image2.jpg" class="img" href="javascript:;">图片3</a>
<a src="img/test_image3.jpg" class="img" href="javascript:;">图片4</a>
<a src="http://house-test.oss-cn-hangzhou.aliyuncs.com/jaz/contract/6dccf99f66bb4266b6dffce6338cd9ae?Expires=1460698784&OSSAccessKeyId=2e8LhKbYeIse3Cw8&Signature=hd%2Bxp1isG4JV6jPd3N3jxlaDMCI%3D"
   class="img" href="javascript:;">图片4</a>

<a src="img/test_image2.jpg" class="img2" href="javascript:;">图片3</a>
<a src="img/test_image3.jpg" class="img2" href="javascript:;">图片4</a>
</body>
</html>
